package com.sanley.piss.model.vo;

import com.sanley.piss.model.po.Menu;
import com.sanley.piss.model.po.Organization;
import com.sanley.piss.model.po.Role;
import com.sanley.piss.model.po.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * Create By  on 2021/4/6.
 * @author 张凯大天才
 */
@ToString
@Data
@EqualsAndHashCode
public class UserVO extends User implements Serializable {
    private static final long serialVersionUID = -3976229977548433699L;

    @ApiModelProperty(value = "组织表",hidden = true)
    private Organization organization;

    @ApiModelProperty(value = "角色名字",hidden = true)
    private List<Role> roles;

    @ApiModelProperty(value = "资源表")
    private Menu menu;
}
